package view.chart;

import java.awt.Color;

/**
 *
 * @author Kevin
 */
public class ChartValue
{
    private final String label;
    private final Color color;
    private final int value;
    
    public ChartValue(String label, Color color, int value)
    {
        this.label = label;
        this.color = color;
        this.value = value;
    }

    public ChartValue(Color color, int value)
    {
        this(null, color, value);
    }
    
    public ChartValue(int value)
    {
        this(null, null, value);
    }
    
    public String getLabel()
    {
        return label;
    }

    public Color getColor()
    {
        return color;
    }
    
    public int getValue()
    {
        return value;
    }    
}
